package com.lys.emsystem.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class College {
    @TableId(type=IdType.AUTO)
    private int id;

    private String no;

    private String name;
    // 学院所属学校
    private int schoolId;

    @TableField(exist = false)
    private String schoolName;

    @TableField(exist = false)
    private String collegeName;

    private boolean status;
    // 学院下属专业
    @TableField(exist = false)
    private List<Major> majorList;

}
